package com.medium.house.service;

import java.util.List;
import com.medium.house.entity.HouseLease;
import com.medium.house.response.HouseCondition;

public interface HouseLeaseService
{
    int DESC = 0;
    int ASC = 1;

    int add(HouseLease dto);

    int delete(long id);

    int update(HouseLease dto);

    HouseLease get(long id);

    List<HouseLease> getByPage(
            int start,
            int limit,
            int orderby,
            int order);

    List<Long> getIdsByPage(
            int start,
            int limit,
            int orderby,
            int order);

    long count();

    List<HouseCondition> selectByCondition(int status);
}